package com.suyi.service;

import com.suyi.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @authoer 贺先生
 * date 2021/4/26 15:51
 */
@FeignClient(value = "seata-storage-service")
public interface TStorageService {

    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") long productId,@RequestParam("count") Integer count);
}
